import pandas as pd
pd.set_option('display.unicode.east_asian_width',True)
df = pd.DataFrame([2,5,5,5,10,3,4,12,7,10],columns=['原始数据'])
df['顺序排名'] = df['原始数据'].rank(method='first')
df['最大值排名'] = df['原始数据'].rank(method='max')
df['最小值排名'] = df['原始数据'].rank(method='average')
print(df)